package com.zhengdongzulin.zuke.app.work.activity

import android.content.Intent
import com.lxj.androidktx.core.getVM
import com.zhengdongzulin.zuke.R
import com.zhengdongzulin.zuke.app.work.vm.ZKServiceEntranceVM
import com.zhengdongzulin.zuke.base.BaseActivity
import com.zhengdongzulin.zuke.databinding.ZkActivityWorkServiceEntranceBinding
import com.zhengdongzulin.zuke.ext.put
import com.zhengdongzulin.zuke.ext.start

/**
 * @类名称: 入口类
 * @类描述:
 * @创建人：Jeff
 * @创建时间：2021/6/9 20:53
 * @备注：
 */
class ZKServiceEntranceActivity :
    BaseActivity<ZKServiceEntranceVM, ZkActivityWorkServiceEntranceBinding>() {

    override fun getLayoutResId(): Int = R.layout.zk_activity_work_service_entrance

    override fun initVM(): ZKServiceEntranceVM = getVM(ZKServiceEntranceVM::class.java)

    override fun initView() {
        setTitleContent("报事报修")
    }

    override fun initData() {

    }

    override fun initListener() {
        mView.cvBaoshi.setOnClickListener {
            Intent().put("type", "Baoshi").start(this, ZKAddWorkActivity::class.java)
        }
        mView.cvWeixiu.setOnClickListener {
            Intent().put("type", "Weixiu").start(this, ZKAddWorkActivity::class.java)
        }
        mView.cvBaojie.setOnClickListener {
            Intent().put("type", "Baojie").start(this, ZKAddWorkActivity::class.java)
        }
        mView.cvList.setOnClickListener {
            Intent().start(this, ZKWorkListActivity::class.java)
        }
    }

    override fun startObserve() {

    }

}